from moviepy.editor import *
import os
'''
a = "J:/aaaa/sq_0010-sh_0010-str.mp4"
b = "J:/aaaa/sq_0010-sh_0200-str.mp4"
video1 = VideoFileClip(a)
video2 = VideoFileClip(b)
final_clip = concatenate_videoclips([video1, video2])
final_clip.to_videofile("J:/aaaa/x3.mp4", fps=30, remove_temp=False)
'''

FilePath  = "J:/aaaa"
videoclips = []
for Mov in  os.listdir(FilePath):
    videoclips.append(VideoFileClip(FilePath + '/'+Mov))
final_clip = concatenate_videoclips(videoclips)
final_clip.to_videofile("J:/aaaa/x3.mp4", fps=30, remove_temp=False)